package com.example.demo.service;

import com.example.demo.dto.MomentDetailDTO;
import com.example.demo.entity.Moment;
import com.example.demo.entity.ReciteNum;
import com.example.demo.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface CommunityService {

    Integer insertMoments(Moment moment);

    List<Moment> selectAll(Integer pageNo);

    Result insertPic(MultipartFile file);

    List<Moment> findByContentPart(String contentPart,Integer pageNo);

    List<Moment> findMyMoment(Long userId, Integer pageNo);

    MomentDetailDTO selectMomentDetail(Long id,Integer pageNo);

    List<ReciteNum> getRank();
}
